{include file="admin/public/header" /}
<form role="form" method="post" action="{:url('ajax/setting/saveconfig')}" class ="cmzForm">
<style type="text/css">
	.tab-pane{padding-top: 20px;padding: 20px;}
</style>
	<div class="row">
            <div class="col-sm-12">
            <div class="tabs-container">
                    <div style="clear:both;height:20px"></div>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
			                 <div class="ibox float-e-margins">
			                        <div class="row">
			                            <div class="col-sm-12 b-r">
			                               <div class="ibox-title">
						                        <a class="label label-primary pull-right tip" id="admin" msg="网站的注册与访问配置信息">注册与访问<i class="fa fa-question"></i></a>
						                        <h5>注册与访问</h5>
						                    </div>
						                    <div class="ibox-content">
						                        <div class="team-members">
						                  
            <table class="table table-striped">
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('默认时区'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <select name="default_timezone" class="form-control">
                                    <option value='Etc/GMT+12'<?php if ($config['default_timezone'] == 'Etc/GMT+12') { ?> selected="selected"<?php } ?>><?php e('(GMT - 12:00 小时) 安尼威托克岛，卡瓦加兰'); ?></option>
                                    <option value='Etc/GMT+11'<?php if ($config['default_timezone'] == 'Etc/GMT+11') { ?> selected="selected"<?php } ?>><?php e('(GMT - 11:00 小时) 中途岛，萨摩亚'); ?></option>
                                    <option value='Etc/GMT+10'<?php if ($config['default_timezone'] == 'Etc/GMT+10') { ?> selected="selected"<?php } ?>><?php e('(GMT - 10:00 小时) 夏威夷'); ?></option>
                                    <option value='Etc/GMT+9'<?php if ($config['default_timezone'] == 'Etc/GMT+9') { ?> selected="selected"<?php } ?>><?php e('(GMT - 9:00 小时) 阿拉斯加'); ?></option>
                                    <option value='Etc/GMT+8'<?php if ($config['default_timezone'] == 'Etc/GMT+8') { ?> selected="selected"<?php } ?>><?php e('(GMT - 8:00 小时) 太平洋时间'); ?></option>
                                    <option value='Etc/GMT+7'<?php if ($config['default_timezone'] == 'Etc/GMT+7') { ?> selected="selected"<?php } ?>><?php e('(GMT - 7:00 小时) 美国山区时间'); ?></option>
                                    <option value='Etc/GMT+6'<?php if ($config['default_timezone'] == 'Etc/GMT+6') { ?> selected="selected"<?php } ?>><?php e('(GMT - 6:00 小时) 美国中部时间，墨西哥市'); ?></option>
                                    <option value='Etc/GMT+5'<?php if ($config['default_timezone'] == 'Etc/GMT+5') { ?> selected="selected"<?php } ?>><?php e('(GMT - 5:00 小时) 美国东部时间，波哥大，利马'); ?></option>
                                    <option value='Etc/GMT+4'<?php if ($config['default_timezone'] == 'Etc/GMT+4') { ?> selected="selected"<?php } ?>><?php e('(GMT - 4:00 小时) 大西洋时间（加拿大），加拉加斯，拉巴斯'); ?></option>
                                    <option value='Canada/Newfoundland'<?php if ($config['default_timezone'] == 'Canada/Newfoundland') { ?> selected="selected"<?php } ?>><?php e('(GMT - 3:30 小时) 纽芬兰'); ?></option>
                                    <option value='Etc/GMT+3'<?php if ($config['default_timezone'] == 'Etc/GMT+3') { ?> selected="selected"<?php } ?>><?php e('(GMT - 3:00 小时) 巴西，布宜诺斯艾利斯，福克兰群岛'); ?></option>
                                    <option value='Etc/GMT+2'<?php if ($config['default_timezone'] == 'Etc/GMT+2') { ?> selected="selected"<?php } ?>><?php e('(GMT - 2:00 小时) 大西洋中部，亚森欣，圣赫勒拿岛'); ?></option>
                                    <option value='Etc/GMT+1'<?php if ($config['default_timezone'] == 'Etc/GMT+1') { ?> selected="selected"<?php } ?>><?php e('(GMT - 1:00 小时) 亚速群岛，佛得角群岛'); ?></option>
                                    <option value='Etc/GMT'<?php if ($config['default_timezone'] == 'Etc/GMT') { ?> selected="selected"<?php } ?>><?php e('(GMT) 卡萨布兰卡，都柏林，伦敦，里斯本，蒙罗维亚'); ?></option>
                                    <option value='Etc/GMT-1'<?php if ($config['default_timezone'] == 'Etc/GMT-1') { ?> selected="selected"<?php } ?>><?php e('(GMT + 1:00 小时) 布鲁塞尔，哥本哈根，马德里，巴黎'); ?></option>
                                    <option value='Etc/GMT-2'<?php if ($config['default_timezone'] == 'Etc/GMT-2') { ?> selected="selected"<?php } ?>><?php e('(GMT + 2:00 小时) 加里宁格勒，南非'); ?></option>
                                    <option value='Etc/GMT-3'<?php if ($config['default_timezone'] == 'Etc/GMT-3') { ?> selected="selected"<?php } ?>><?php e('(GMT + 3:00 小时) 巴格达，利雅德，莫斯科，奈洛比'); ?></option>
                                    <option value='Iran'<?php if ($config['default_timezone'] == 'Iran') { ?> selected="selected"<?php } ?>><?php e('(GMT + 3:30 小时) 德黑兰'); ?></option>
                                    <option value='Etc/GMT-4'<?php if ($config['default_timezone'] == 'Etc/GMT-4') { ?> selected="selected"<?php } ?>><?php e('(GMT + 4:00 小时) 阿布达比，巴库，马斯喀特，第比利斯'); ?></option>
                                    <option value='Asia/Kabul'<?php if ($config['default_timezone'] == 'Asia/Kabul') { ?> selected="selected"<?php } ?>><?php e('(GMT + 4:30 小时) 喀布尔'); ?></option>
                                    <option value='Etc/GMT-5'<?php if ($config['default_timezone'] == 'Etc/GMT-5') { ?> selected="selected"<?php } ?>><?php e('(GMT + 5:00 小时) 凯萨琳堡，克拉嗤，塔什干'); ?></option>
                                    <option value='Asia/Kolkata'<?php if ($config['default_timezone'] == 'Asia/Kolkata') { ?> selected="selected"<?php } ?>><?php e('(GMT + 5:30 小时) 孟买，加尔各答，马德拉斯，新德里'); ?></option>
                                    <option value='Etc/GMT-6'<?php if ($config['default_timezone'] == 'Etc/GMT-6') { ?> selected="selected"<?php } ?>><?php e('(GMT + 6:00 小时) 阿拉木图，科隆巴，达卡'); ?></option>
                                    <option value='Etc/GMT-7'<?php if ($config['default_timezone'] == 'Etc/GMT-7') { ?> selected="selected"<?php } ?>><?php e('(GMT + 7:00 小时) 曼谷，河内，雅加达'); ?></option>
                                    <option value='Etc/GMT-8'<?php if (!$config['default_timezone'] OR $config['default_timezone'] == 'Etc/GMT-8') { ?> selected="selected"<?php } ?>><?php e('(GMT + 8:00 小时) 北京，香港，澳洲伯斯，新加坡，台北'); ?></option>
                                    <option value='Etc/GMT-9'<?php if ($config['default_timezone'] == 'Etc/GMT-9') { ?> selected="selected"<?php } ?>><?php e('(GMT + 9:00 小时) 大阪，札幌，首尔，东京，亚库次克'); ?></option>
                                    <option value='Etc/GMT-10'<?php if ($config['default_timezone'] == 'Etc/GMT-10') { ?> selected="selected"<?php } ?>><?php e('(GMT + 10:00 小时) 墨尔本，巴布亚新几内亚，雪梨'); ?></option>
                                    <option value='Etc/GMT-11'<?php if ($config['default_timezone'] == 'Etc/GMT-11') { ?> selected="selected"<?php } ?>><?php e('(GMT + 11:00 小时) 马加丹，新喀里多尼亚，所罗门群岛'); ?></option>
                                    <option value='Etc/GMT-12'<?php if ($config['default_timezone'] == 'Etc/GMT-12') { ?> selected="selected"<?php } ?>><?php e('(GMT + 12:00 小时) 新西兰，斐济，马绍尔群岛'); ?></option>
                                    <option value='Etc/GMT-13'<?php if ($config['default_timezone'] == 'Etc/GMT-13') { ?> selected="selected"<?php } ?>><?php e('(GMT + 13:00 小时) 堪察加半岛，阿那底河'); ?></option>
                                    <option value='Etc/GMT-14'<?php if ($config['default_timezone'] == 'Etc/GMT-14') { ?> selected="selected"<?php } ?>><?php e('(GMT + 14:00 小时) 圣诞岛'); ?></option>
                                </select>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('站点关闭'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">
                                <div class="btn-group mod-btn">
                                <div class="checkbox i-checks checkbox-inline">
                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="site_close" value="Y"<?php if ($config['site_close'] == 'Y') { ?> checked="checked"<?php } ?> /> <?php e('是'); ?>
                                    </label>
                                    </div>
                                    <div class="checkbox i-checks checkbox-inline">

                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="site_close" value="N"<?php if ($config['site_close'] != 'Y') { ?> checked="checked"<?php } ?> /> <?php e('否'); ?>
                                    </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('站点关闭的提示'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input type="text" class="form-control" name="close_notice" value="<?php echo $config['close_notice']; ?>" />
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('新用户注册显示验证码'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">
                                <div class="btn-group mod-btn">
                                <div class="checkbox i-checks checkbox-inline">
                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="register_seccode" value="Y"<?php if ($config['register_seccode'] == 'Y') { ?> checked="checked"<?php } ?> /> <?php e('是'); ?>
                                    </label>
                                   </div>
                                   <div class="checkbox i-checks checkbox-inline">

                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="register_seccode" value="N"<?php if ($config['register_seccode'] != 'Y') { ?> checked="checked"<?php } ?> /> <?php e('否'); ?>
                                    </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('新用户注册验证类型'); ?>:</span>
                            <div class="col-sm-8 col-xs-8">
                            <div class="checkbox i-checks checkbox-inline">
                                <label class="checkbox-inline"><input type="radio" name="register_valid_type" value="email"<?php if ($config['register_valid_type'] == 'email') { ?> checked="checked"<?php } ?> /> <?php e('邮件验证'); ?></label>
                                </div>
                                <div class="checkbox i-checks checkbox-inline">

                                <label class="checkbox-inline"><input type="radio" name="register_valid_type" value="approval"<?php if ($config['register_valid_type'] == 'approval') { ?> checked="checked"<?php } ?> /> <?php e('邮件验证 + 后台审核'); ?></label>
                                </div>
                                <div class="checkbox i-checks checkbox-inline">

                                <label class="checkbox-inline"><input type="radio" name="register_valid_type" value="N"<?php if ($config['register_valid_type'] == 'N') { ?> checked="checked"<?php } ?> /> <?php e('不验证'); ?></label>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('注册类型'); ?>:</span>
                            <div class="col-sm-8 col-xs-8">
                           
                                <div class="checkbox i-checks checkbox-inline">
										<label class="checkbox-inline"><input type="radio" name="register_type" value="open"<?php if ($config['register_type'] == 'open') { ?> checked="checked"<?php } ?> /> <?php e('开放注册'); ?></label>
                                </div>
                                <div class="checkbox i-checks checkbox-inline">


                                <div class="checkbox i-checks checkbox-inline">
										<label class="checkbox-inline"><input type="radio" name="register_type" value="invite"<?php if ($config['register_type'] == 'invite') { ?> checked="checked"<?php } ?> /> <?php e('邀请注册'); ?></label>
								</div>

                              
                                <div class="checkbox i-checks checkbox-inline">
										<label class="checkbox-inline"><input type="radio" name="register_type" value="weixin"<?php if ($config['register_type'] == 'weixin') { ?> checked="checked"<?php } ?> /> <?php e('微信一站式注册 (不支持 UCenter)'); ?></label>
								</div>
                               

                                <div class="checkbox i-checks checkbox-inline">
										<label class="checkbox-inline"><input type="radio" name="register_type" value="close"<?php if ($config['register_type'] == 'close') { ?> checked="checked"<?php } ?> /> <?php e('关闭注册'); ?></label>
								</div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('用户名规则'); ?>:</span>
                            <div class="col-sm-8 col-xs-8">
                                <div class="checkbox i-checks checkbox-inline">
										<label class="checkbox-inline"><input type="radio" value="0" name="username_rule"<?php if ($config['username_rule'] == 0) { ?> checked="checked"<?php } ?> /> <?php e('不限制'); ?></label>
								</div>
                                <div class="checkbox i-checks checkbox-inline">
										<label class="checkbox-inline"><input type="radio" value="1" name="username_rule"<?php if ($config['username_rule'] == 1) { ?> checked="checked"<?php } ?> /> <?php e('汉字/字母/数字/下划线'); ?></label>
								</div>
                                <div class="checkbox i-checks checkbox-inline">
										<label class="checkbox-inline"><input type="radio" value="2" name="username_rule"<?php if ($config['username_rule'] == 2) { ?> checked="checked"<?php } ?> /> <?php e('字母/数字/下划线'); ?></label>
								</div>
                                <div class="checkbox i-checks checkbox-inline">
										<label class="checkbox-inline"><input type="radio" value="3" name="username_rule"<?php if ($config['username_rule'] == 3) { ?> checked="checked"<?php } ?> /> <?php e('汉字'); ?></label>
								</div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('用户名最少字符数'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="username_length_min" class="form-control" type="text" value="<?php echo $config['username_length_min']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('用户名最多字符数'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="username_length_max" class="form-control" type="text" value="<?php echo $config['username_length_max']; ?>"/>

                                <span class="help-block"><?php e('注: 一个汉字等于 2 个字符'); ?></span>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('用户注册协议'); ?>:</span>
                            <div class="col-sm-7 col-xs-8">
                                <textarea class="form-control textarea" rows="8" name="register_agreement"  ><?php echo $config['register_agreement']; ?></textarea>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('用户注册名不允许出现以下关键字'); ?>:</span>
                            <div class="col-sm-7 col-xs-8">
                                <textarea class="form-control textarea" rows="5" name="censoruser"  ><?php echo $config['censoruser']; ?></textarea>

                                <span class="help-block"><?php e('每行填写一个关键字, 如: admin, 管理员等'); ?></span>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('用户注册后默认关注的用户 ID'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="def_focus_uids" class="form-control" type="text" value="<?php echo $config['def_focus_uids']; ?>"/>

                                <span class="help-block"><?php e('多个用户 ID 请用 , 隔开'); ?></span>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('首次登录推荐用户列表'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="welcome_recommend_users" class="form-control" type="text" value="<?php echo $config['welcome_recommend_users']; ?>"/>

                                <span class="help-block"><?php e('填写用户名, 若有多个用户名请用 , 隔开, 留空系统自动推荐'); ?></span>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('新用户注册获得邀请数量'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="newer_invitation_num" type="text" class="form-control" value="<?php echo $config['newer_invitation_num']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-3 col-xs-3 control-label"><?php e('新用户注册系统发送的欢迎内容'); ?>:</span>
                            <div class="col-sm-7 col-xs-8">
                                <textarea class="form-control textarea" rows="4" name="welcome_message_pm"  ><?php echo $config['welcome_message_pm']; ?></textarea>

                                <span class="help-block"><?php e('新用户注册欢迎内容, 以下变量可作为内容替换: <br />{username}: 用户名<br />{time}: 发送时间<br />{sitename}: 网站名称'); ?></span>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group mod-width">
                            <span class="col-sm-2 col-xs-3 control-label"><?php e('新用户默认邮件提醒设置'); ?>:</span>
                            <div class="col-sm-10 col-xs-8">
                                <input type="hidden" name="set_email_settings" value="1" />

                                <div class="checkbox i-checks checkbox-inline">
										<label>
                                    <input type="checkbox" name="new_user_email_setting[]" value="FOLLOW_ME"<?php if ($config['new_user_email_setting']['FOLLOW_ME'] != 'N') { ?> checked="checked"<?php } ?> /> <?php e('当有人关注我'); ?>
                                </label>
								</div>
                                <div class="checkbox i-checks checkbox-inline">
										<label>
                                    <input type="checkbox" name="new_user_email_setting[]" value="QUESTION_INVITE"<?php if ($config['new_user_email_setting']['QUESTION_INVITE'] != 'N') { ?> checked="checked"<?php } ?> /> <?php e('有人邀请我回答问题'); ?>
                                </label>
								</div>
                                <div class="checkbox i-checks checkbox-inline">
										<label>
                                    <input type="checkbox" name="new_user_email_setting[]" value="NEW_ANSWER"<?php if ($config['new_user_email_setting']['NEW_ANSWER'] != 'N') { ?> checked="checked"<?php } ?> /> <?php e('我关注的问题有了新回复'); ?>
                                </label>
								</div>
                                <div class="checkbox i-checks checkbox-inline">
										<label>
                                    <input type="checkbox" name="new_user_email_setting[]" value="NEW_MESSAGE"<?php if ($config['new_user_email_setting']['NEW_MESSAGE'] != 'N') { ?> checked="checked"<?php } ?> /> <?php e('有人向我发送私信'); ?>
                                </label>
								</div>
                                <div class="checkbox i-checks checkbox-inline">
										<label>
                                    <input type="checkbox" name="new_user_email_setting[]" value="QUESTION_MOD"<?php if ($config['new_user_email_setting']['QUESTION_MOD'] != 'N') { ?> checked="checked"<?php } ?> /> <?php e('我的问题被编辑'); ?>
                                </label>
								</div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr style="display:none;">
                    <td>
                        <div class="form-group mod-width">
                            <span class="col-sm-2 col-xs-3 control-label"><?php e('新用户默认通知设置'); ?>:</span>
                            <div class="col-sm-10 col-xs-8">
                                <input type="hidden" name="set_notification_settings" value="1" />

                                <?php //foreach($this->notify_actions as $key => $val) { ?>
                                <?php// if ($val['user_setting']) { ?>
                                <div class="checkbox i-checks checkbox-inline">
										<label><input name="new_user_notification_setting[<?php echo $key;?>]" type="checkbox" value="1"<?php// if (!in_array($key, $this->notification_settings)) { ?> checked="checked"<?php// } ?> /> <?php //e($val['desc']); ?></label>
								</div>
                                <?php// } ?>
                                <?php } ?>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
      
						                                   

						                            
					                                
						                        </div>
			                    			</div>
			                            </div>
			                            
			                        </div>  
			                        <div style="clear:both;height:5px"></div> 
			                        <div class="hr-line-dashed"></div>
			                            <div class="form-group">
			                                <div class="col-sm-4 col-sm-offset-2">
			                                 <a href="javascript:;" class="btn btn-sm btn-primary pull-left m-t-n-xs cmzPost" style="margin-left:20px;,margin-top:20px;"><strong>提交配置</strong></a>
			                                </div>
			                            </div>
			                         
                    				 <div style="clear:both;height:5px"></div>    
			                </div>
                        </div>




                        


                    </div>


                </div>



             
            </div>
        
           
</div>
<div style="clear:both;"></div>
 <div>
  	 
  
	</div>


           
   </form>

{include file="admin/public/footer" /}